@import '../../../css/mobile/components/normalize';

@font-face {
  font-weight: normal;
  font-style: normal;
  font-family: 'VarelaRound-Regular';
  src: url(../../../fonts/mobile/VarelaRound-Regular.eot);
  src: url(../../../fonts/mobile/VarelaRound-Regular.eot) format('embedded-opentype'),
  url(../../../fonts/mobile/VarelaRound-Regular.woff) format('woff'),
  url(../../../fonts/mobile/VarelaRound-Regular.ttf) format('truetype'),
  url(../../../fonts/mobile/VarelaRound-Regular.svg) format('svg');
}

html, body {
  font-family: "VarelaRound-Regular", "PingFang SC", "Microsoft YaHei";
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  padding-bottom: 100px;
}

.header {
  height: 360px;
  position: relative;
  overflow: hidden;

  .banner {
    width: 100%;
  }

  .mask {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
  }

  .main {
    position: absolute;
    left: 36px;
    bottom: 60px;
    height: 44px;
    font-size: 36px;
    font-family: VarelaRound-Regular;
    color: rgba(255, 255, 255, 1);
    line-height: 44px;
  }

  .subhead {
    position: absolute;
    left: 36px;
    bottom: 16px;
    height: 42px;
    font-size: 30px;
    font-family: PingFangSC-Regular;
    color: rgba(255, 255, 255, 1);
    line-height: 42px;
  }
}

.audio-list {
  .audio-card {
    padding-bottom: 38px;
    border-bottom: 2px solid rgba(231, 232, 234, 1);

    .audio-info {
      padding-top: 26px;
      .audio-id {
        display: inline-block;
        width: 80px;
        text-align: center;
        vertical-align: top;
        line-height: 100px;
        font-size: 32px;
        color: rgba(138, 150, 160, 1);
      }
      .audio-name {
        max-width: 630px;
        margin-bottom: 28px;
        display: inline-block;

        .audio-name-en {
          min-height: 48px;
          font-size: 32px;
          font-family: PingFangSC-Medium;
          color: rgba(35, 43, 52, 1);
          line-height: 45px;
        }
        .audio-name-cn {
          margin-top: 15px;
          min-height: 48px;
          font-size: 28px;
          font-family: PingFangSC-Light;
          color: rgba(35, 43, 52, 1);
          line-height: 45px;
        }
      }
    }
    .audio-player {
      width: 694px;
      height: 138px;
      margin: 0 auto;
      background: rgba(251, 251, 251, 1);
      border-radius: 12px;
      border: 2px solid rgba(240, 241, 244, 1);
      display: flex;
      align-items: center;

      .play-btn {
        margin-left: 30px;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(50, 205, 255, 1);
        box-shadow: 0px 6px 12px 0px rgba(50, 205, 255, 0.5);

        &.play {
          &:before {
            display: block;
            content: '' !important;
            margin-top: 16px;
            margin-left: 16px;
            width: 32px;
            height: 32px;
            background: url("../../../mobile/book/icon/ic_play.png");
            background-size: 32px 32px;
          }
        }
        &.pause {
          &:before {
            display: block;
            content: '' !important;
            margin-top: 16px;
            margin-left: 16px;
            width: 32px;
            height: 32px;
            background: url("../../../mobile/book/icon/ic_pause.png");
            background-size: 32px 32px;
          }
        }
      }

      .progress-bar {
        position: relative;
        margin-left: 34px;
        width: 440px;
        height: 8px;
        background: rgba(228, 230, 232, 1);
        border-radius: 4px;

        .progress-bar-current {
          position: absolute;
          top: 50%;
          width: 0;
          height: 8px;
          margin-top: -4px;
          border-radius: 4px;
          background: rgba(50, 205, 255, 1);
        }
        .progress-bar-select {
          position: absolute;
          top: 50%;
          left: 0;
          width: 48px;
          height: 48px;
          margin-top: -24px;
          cursor: pointer;
          border-radius: 50%;
          background: rgba(255, 255, 255, 1);
          box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.1);
          transform: translateX(-24px);
        }
      }

      .audio-time {
        margin-left: 32px;
        height: 28px;
        font-size: 24px;
        color: rgba(153, 158, 168, 1);
        line-height: 28px;
      }
    }
    .audio-player, .audio-player > * {
      -webkit-touch-callout: none; // 禁用iOS长按放大
      touch-callout: none; // 禁用iOS长按放大
      user-select: none; // 禁止弹出复制粘贴
    }
  }
  :last-child {
    border-bottom: 0;
  }
}
